import { useEffect } from "react";
import { useSearchParams } from "react-router-dom";

export const BPage = () => {

    const [searchParams] = useSearchParams();
    

  useEffect(() => {
    const name = searchParams.get('name')
    // console.log(window.location.href.split('?'))
    console.log(name)
  }, []);

  return (
    <div>
      <div>B页面</div>
    </div>
  );
};
